﻿// *************************************************************************************************
// Project: RealSense.Light.CodeContracts
// Namespace: RealSense.Light.CodeContracts
// File: RuntimeAssert.cs  Author: Peter O'Hanlon
// Copyright © Peter O'Hanlon 2014-2015
// Date: 2015/2/9 08:05
// *************************************************************************************************
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RealSense.Light.CodeContracts
{
  public static class RuntimeAssert
  {
    public static T IsNotNull<T>(T instance, string parameterName)
    {
      if (instance == null)
      {
        throw new ArgumentNullException(parameterName);
      }
      return instance;
    }
  }
}
